# -*- coding:utf-8 -*-
# @time:2020-12-16 14:52
# POWERD BY:ECHO
# POST http://access.evergrande.com/siam/login HTTP/1.1
# Accept: text/html, application/xhtml+xml, image/jxr, */*
# Referer: http://access.evergrande.com/siam/login
# Accept-Language: zh-CN
# User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
# Content-Type: application/x-www-form-urlencoded
# Accept-Encoding: gzip, deflate
# Content-Length: 119
# Host: access.evergrande.com
# Connection: Keep-Alive
# Pragma: no-cache
# Cookie: JSESSIONID=618F4F881564292F94EB894A53F9E036-n1
#
# username=042647180&password=HDkuangchao123&lt=LT-14272322-4dMtHqZpgJKzUcLdG7PdG4hYJ0TceJ&execution=e2s1&_eventId=submit

#POST https://ems.evergrande.com/ekp/sys/communicate/sys_communicate_main/sysCommunicateMain.do?method=save&fdModelName=&fdModelId=&key=&listcontent=main&s_seq=1 HTTP/1.1
import requests
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
    "Content-Type": "application/x-www-form-urlencoded"

}
param = {
    "username": "042647180",
    "password": "HDkuangchao123",
    "lt": "LT-14311716-jQkenODqBkkJRSoPcZLe7SnxQTnISk",
    "execution": "e8s1",
    "_eventId": "submit"
}

session = requests.session()
session.headers.update(headers)
print(session.headers)
#登录ems
session.get("http://access.evergrande.com/siam/login")

res = session.post("http://access.evergrande.com/siam/login",data="username=042647180&password=HDkuangchao123&lt=LT-14311716-jQkenODqBkkJRSoPcZLe7SnxQTnISk&execution=e8s1&_eventId=submit")
print(res.text)
